#!/bin/bash
dir="testdir"
log="test.log"
if (( $dir == "testdir" )); then
	echo `date` "is ok" >> $log 
else
	echo `date` "is not ok" >> $log
fi

if (( dir == "testdir" )); then
	echo `date` "is ok" 
else
	echo `date` "is not ok" 
fi >> $log
